import { get, post } from '../http'

// 获取在线商品列表
export const getAmzProductSale = (paylaod?: any) => {
  return get('/product/amzProductSale/pageRelated', paylaod)
}
// 添加在线商品
export const addAmzProductSale = (paylaod?: any) => {
  return post('/product/amzProductSale/save', paylaod)
}
// 匹配销售员
export const updateSalerBatch = (paylaod?: any) => {
  return post('/product/amzProductSale/updateSalerBatch', paylaod)
}
// 设置首次入仓时间
export const updateGmtWarhousingBatch = (paylaod?: any) => {
  return post('/product/amzProductSale/updateGmtWarhousingBatch', paylaod)
}
// 批量转产品库
export const convertProductBatch = (paylaod?: any) => {
  return post('/product/amzProductSale/convertProductBatch', paylaod)
}
// 批量关联SKU
export const bindProductBatch = (paylaod?: any) => {
  return post('/product/amzProductSale/bindProductBatch', paylaod)
}
// 查询自动关联设置状态
export const getConfigStatus = (paylaod?: any) => {
  return get('/product/amzProductSale/getConfig', paylaod)
}
// 更新自动关联设置
export const updateConfigStatus = (paylaod?: any) => {
  return post('/product/amzProductSale/updateConfig', paylaod)
}
// 导入关联产品SKU和销售员
export const importBindProduct = (paylaod?: any) => {
  return post('/product/amzProductSale/importBindProduct', paylaod, { headers: { 'Content-Type': 'multipart/form-data' } })
}
// 更新商品信息
export const syncAmzProductSalesByIds = (paylaod?: any) => {
  return post('/product/amzProductSale/syncAmzProductSalesByIds', paylaod)
}
// 批量同步FnSku
export const syncFnSkus = (paylaod?: any) => {
  return post('/product/amzProductSale/syncFnSkus', paylaod)
}
// 根据店铺同步新商品
export const syncAmzProductSalesByShops = (paylaod?: any) => {
  return post('/product/amzProductSale/syncAmzProductSalesByShops', paylaod)
}
// 在线商品同步到智能补货
export const syncReplenishByProduct = (paylaod?: any) => {
  return post('/procurement/v1/intellectReplenish/syncReplenishByProduct', paylaod)
}
